]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell/perf-helper: Remove unused struct members
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Apr 2023 20:47:26 +0000 (22:47 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 7 Jun 2023 11:12:40 +0000 (11:12 +0000)
Some parameters are only relevant when creating the window, and
are therefore never read from the window info struct.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2733>

src/shell-perf-helper.c

index 16cbb748d665bc747e4795def70490619782869f..addf011e9cc0681821e43bc5748e871acb7c4532 100644 (file)
@@ -38,11 +38,8 @@ static const gchar introspection_xml[] =
 
 typedef struct {
   GtkWidget *window;
-  int width;
-  int height;
 
   guint alpha : 1;
-  guint maximized : 1;
   guint redraws : 1;
   guint mapped : 1;
   guint exposed : 1;
@@ -209,10 +206,7 @@ create_window (int      width,
   GtkWidget *child;
 
   info = g_new0 (WindowInfo, 1);
-  info->width = width;
-  info->height = height;
   info->alpha = alpha;
-  info->maximized = maximized;
   info->redraws = redraws;
   info->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   if (alpha)